<html>
    
    <head>
        <title>
            Chrome ActiveX setup
        </title>
        <style>
            .urllist { width:650; height:300; } .clsidlist { width:40em; height:12em;
            } .description { width:600; padding-bottom:30px }
        </style>
        <script>
            function loadSettings() {
                urllist.value = chrome.extension.getBackgroundPage().getUrlPlain();
                clsidlist.value = chrome.extension.getBackgroundPage().getTrustedClsids();
            }
            function saveUrls() {
                chrome.extension.getBackgroundPage().setUrlMatches(urllist.value);
            }
            function saveClsids() {
                chrome.extension.getBackgroundPage().setTrustedClsids(clsidlist.value);
            }
            function saveSettings() {
                saveUrls();
                saveClsids();
            }
        </script>
    </head>
    
    <body onload="loadSettings()" onunload="saveSettings()">
        <div class="description">
            <p>
                The urls in the following list, one per line, will be qualified to load
                ActiveX plugins whenever possible
            </p>
            <p>
                The format should be like &ltscheme&gt://&lthost&gt/&ltpath&gt . Note
                the / after host cannot be omitted. Refer to
                <a href="http://code.google.com/chrome/extensions/match_patterns.html">
                    match_patterns<a> for detail.
            </p>
            <p>
                To use Regular Expression, add "r/" before this line"
            </p>
        </div>
        <textarea class="urllist" id="urllist">
        </textarea>
        <br/>
        <p class="description">
            The trusted CLSIDs, one per line. All the plugins within the following
            CLSIDs will be actived on every page.
        </p>
        <p class="description">
            Input like following: {ACACC6EB-1FBA-4E13-A729-53AEB2DF54F8}
        </p>
        <textarea class="clsidlist" id="clsidlist">
        </textarea>
        <br/>
    </body>

</html>